﻿using FluentNHibernate.Mapping;
using Messenia.Data.Models;

namespace Messenia.Data.Hibernate.Map {
    public class GroupResourceMap: ClassMap<GroupResource> {
        public GroupResourceMap() {
            Table("groups_resources");
            CompositeId()
                .KeyReference(x => x.Group,"Group_ID")
                .KeyReference(x => x.Resource,"HumanResource_ID");

        }
    }
}
